{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=303
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	a:int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a);
write(a,' korov');
if (a mod 10=1) and (a mod 100<>11) then write('a') else
if (a mod 10>1) and (a mod 10<5) and (a mod 100<>12) and (a mod 100<>13) and (a mod 100<>14) then write('y'); 
end.